/**
 * @author：anlzou
 * @Date：Created in13:52 2021/3/29
 * @Github：https://github.com/anlzou
 * @Description：
 */
package com.anlzou.demo.aop.impl;

import com.anlzou.demo.aop.ArithmeticCalculator;
import org.springframework.stereotype.Component;

@Component("arithmeticCalculator")
public class ArithmeticCalculatorImpl implements ArithmeticCalculator {
    @Override
    public int add(int i, int j) {
        int result = i+j;
        System.out.println("add->result:"+result);
        return 0;
    }

    @Override
    public int div(int i, int j) {
        int result = i/j;
        System.out.println("div->result:"+result);
        return 0;
    }
}
